//
//  BKCustextFieldView.h
//  bestkeep
//
//  Created by windCould on 16/11/28.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BKUserCustomBtn.h"
@class BKCustextFieldView;
@class BKUserCustomBtn;
typedef enum {
    
    BKCustextFieldViewDefultType,
    BKCustextFieldViewTimeCountDownType,
    BKCustextFieldViewImageCodeType
    
}BKCustextFieldViewType;

@protocol BKCustextFieldViewDelegate <NSObject>

@optional
-(void)custextFieldView:(BKCustextFieldView *)custextFieldView rightButtonTouch:(BKUserCustomBtn *)btn;
@optional
-(void)custextFieldView:(BKCustextFieldView *)custextFieldView imgCodeButtonTouch:(UIButton *)btn;

@end



@interface BKCustextFieldView : UIView

@property (nonatomic,strong)UITextField * textField;
@property (nonatomic,copy)NSString * imgUrlStr;
@property (nonatomic,copy)NSString * placeHolderString;
@property (nonatomic,strong)UIImage * rightImg;
@property (nonatomic,strong)BKUserCustomBtn * countDownBtn;

@property (nonatomic,assign)id<BKCustextFieldViewDelegate>myDlegate;

-(instancetype)initWithFrame:(CGRect)frame style:(BKCustextFieldViewType)style;

@end
